﻿using AbpApplication.AppServices;
using AbpApplication.InPut;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace AbpWebapi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ViewServiceController : ControllerBase
    {
        private readonly IViewService viewService;

        public ViewServiceController(IViewService viewService)
        {
            this.viewService = viewService;
        }

        [HttpPost]
   
        public async Task<ApiResponsePage> View_Box(InPut_ViewService InPut) => await viewService.View_Box(InPut);
        [HttpPost]

        public async Task<ApiResponsePage> View_BoxGrid_Material(InPut_ViewService2 InPut)=>await viewService.View_BoxGrid_Material(InPut);
        [HttpPost]

        public async Task<ApiResponse> View_WareHouse()=>await viewService.View_WareHouse();
        [HttpPost]
        public async Task<ApiResponsePage> View_WareHouseLine(InPut_ViewService3 InPut) => await viewService.View_WareHouseLine(InPut);
        [HttpPost]
        public  async Task<ApiResponsePage> View_Material(InPut_ViewService4 InPut)=>await viewService.View_Material(InPut);
        [HttpPost]
        public async Task<ApiResponsePage> View_TaskOrder(InPut_ViewService5 InPut)=>await viewService.View_TaskOrder(InPut);
        [HttpPost]
        public async Task<ApiResponsePage> View_Box_WarehouseLine(InPut_ViewService6 InPut) => await viewService.View_Box_WarehouseLine(InPut);
        [HttpPost]
        public async Task<ApiResponsePage> View_Material_WarehouseLine(InPut_ViewService9 inPut) => await viewService.View_Material_WarehouseLine(inPut);
        [HttpPost]
        public async Task<ApiResponsePage> View_NeetOutMaterial(InPut_ViewService10 InPut) => await viewService.View_NeetOutMaterial(InPut);
        [HttpPost]
        public async Task<ApiResponsePage> View_LogNote(InPut_ViewService7 InPut)=>await viewService.View_LogNote(InPut);
        [HttpPost]
        public async Task<ApiResponsePage> View_MaterialProperty(InPut_ViewService8 InPut)=>await viewService.View_MaterialProperty(InPut);
        [HttpPost]
        public async Task<ApiResponse> View_Inlethouse(string? InlethouseCode)=>await viewService.View_Inlethouse(InlethouseCode);
        [HttpPost]
        public async Task<ApiResponse>  View_InlethouseLine()=>await viewService.View_InlethouseLine();
        [HttpPost]
        public async Task<ApiResponsePage> View_PutInOrder(InPut_ViewService11 InPut) => await viewService.View_PutInOrder(InPut);
        [HttpPost]  
        public async Task<ApiResponsePage> View_PutOutOrder(InPut_ViewService12 InPut)=>await viewService.View_PutOutOrder(InPut);
        [HttpPost]
        public async Task<ApiResponse> View_Guid_NeetOutMaterial(string Symbol) =>await viewService.View_Guid_NeetOutMaterial(Symbol);
        [HttpPost]
        public async Task<ApiResponse> View_SowingWallLine(string Machine)=>await viewService.View_SowingWallLine(Machine);
        [HttpPost]
        public async Task<ApiResponse> View_PutOutOrder2(InPut_ViewService13 InPut) =>await viewService.View_PutOutOrder2(InPut);
        [HttpPost]
        public async Task<ApiResponsePage> View_BoxProportion(InPut_ViewService14 InPut) =>await viewService.View_BoxProportion(InPut);
        [HttpPost]
        public async Task<ApiResponsePage> View_CoutomerCheckList(InPut_ViewService15 InPut) =>await viewService.View_CoutomerCheckList(InPut);
        [HttpPost]
        public async Task<ApiResponse> HML_GetMostMaterial()=>await viewService.HML_GetMostMaterial();
        [HttpPost]
        public async Task<ApiResponse> HML_GetEveryDayMaterial()=>await viewService.HML_GetEveryDayMaterial();
        [HttpPost]
        public async Task<ApiResponse> HML_GetlogNote()=>await viewService.HML_GetlogNote();
    }
}
